package com.ruoyi.yuwen.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 账号记录对象 t_account
 * 
 * @author ruoyi
 * @date 2023-02-27
 */
public class Account extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 头像 */
    @Excel(name = "头像")
    private String head;

    /** 昵称 */
    @Excel(name = "昵称")
    private String nickname;

    /** 姓名 */
    @Excel(name = "姓名")
    private String name;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    /** 是否是当前账号（0：否，1：是） */
    @Excel(name = "是否是当前账号", readConverterExp = "0=：否，1：是")
    private Integer state;

    /** 微信用户id */
    @Excel(name = "微信用户id")
    private Long weixinUserId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setHead(String head) 
    {
        this.head = head;
    }

    public String getHead() 
    {
        return head;
    }
    public void setNickname(String nickname) 
    {
        this.nickname = nickname;
    }

    public String getNickname() 
    {
        return nickname;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setState(Integer state) 
    {
        this.state = state;
    }

    public Integer getState() 
    {
        return state;
    }
    public void setWeixinUserId(Long weixinUserId) 
    {
        this.weixinUserId = weixinUserId;
    }

    public Long getWeixinUserId() 
    {
        return weixinUserId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("head", getHead())
            .append("nickname", getNickname())
            .append("name", getName())
            .append("phone", getPhone())
            .append("state", getState())
            .append("weixinUserId", getWeixinUserId())
            .toString();
    }
}
